package com.xjoyt.pay.gateway.params;

import javax.validation.constraints.NotNull;

import com.xjoyt.pay.vo.PayType;

public class RateParam {

	@NotNull
	public PayType type;

	public int getType() {
		return type == null ? 0 : type.ordinal();
	}

	/**
	 * 费率(‰)
	 */
	@NotNull
	public Double rate;
}
